package com.newsmanagement.service;


import com.newsmanagement.entity.NewsContentEntity;
import com.newsmanagement.entity.ReturnedMessages;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author xbr
 * 2017/12/4 16:29
 * 社会动态管理service接口
 */
public interface ISocialDevelopmentService {

    /**
     * 发布动态（即保存动态，发布标记为发布）
     * @param eumId 操作的用户id
     * @param developmentTitle 动态标题
     * @param developmentTxt 动态内容
     * @return ReturnedMessages
     */
    ReturnedMessages releaseDevelopment(Integer eumId ,String developmentTitle,String developmentTxt);

    /**
     * 分页查询动态
     * @param jumpPage 跳转页面
     * @param showSize 每页显示的数据条数
     * @return ReturnedMessages
     */
    ReturnedMessages developmentList(Integer jumpPage ,Integer showSize);

    /**
     * 对动态点赞
     * @param eumId 点赞用户id
     * @param developmentId 被点赞动态id
     * @return ReturnedMessages
     */
    ReturnedMessages likeDevelopment(Integer eumId ,Integer developmentId);


}
